package cn.lutu.domain.repository;

import cn.lutu.protocol.entity.Route;
import cn.lutu.protocol.vo.RouteVO;
import cn.lutu.util.pojo.vo.PageData;


import java.util.List;

public interface RouteRepository {

    PageData<RouteVO> selectRouteList(Integer pageNum, Integer pageSize);

    RouteVO selectRouteListById(Long id);

    List<RouteVO> selectRoute(Long id);

    int addRoute(Route route);

    int deleteById(Long id);

    Route selectRouteById(Long id);

    int updateRoute(Route route);

    RouteVO getRouteById(Long id);

    int countByNameAndNotId(Long id, String name);


//    List<VoteVO> selectVoteById(Long id);
}
